
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>配置文件 · 合同管理</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Gj">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-tomorrow.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="newPage.html" />
    
    
    <link rel="prev" href="views/usermanage.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    概要
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../Framework.html">
            
                <a href="../Framework.html">
            
                    
                    架构
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">src目录</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="api.html">
            
                <a href="api.html">
            
                    
                    api
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="assets.html">
            
                <a href="assets.html">
            
                    
                    assets
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="components.html">
            
                <a href="components.html">
            
                    
                    components
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="filters.html">
            
                <a href="filters.html">
            
                    
                    filters
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="mixins.html">
            
                <a href="mixins.html">
            
                    
                    mixins
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="router.html">
            
                <a href="router.html">
            
                    
                    router
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="store.html">
            
                <a href="store.html">
            
                    
                    store
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="styles.html">
            
                <a href="styles.html">
            
                    
                    styles
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="utils.html">
            
                <a href="utils.html">
            
                    
                    utils
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="views/">
            
                <a href="views/">
            
                    
                    views
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.10.1" data-path="views/activate.html">
            
                <a href="views/activate.html">
            
                    
                    activate
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.2" data-path="views/approvemanage.html">
            
                <a href="views/approvemanage.html">
            
                    
                    approvemanage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.3" data-path="views/sealmanage.html">
            
                <a href="views/sealmanage.html">
            
                    
                    sealmanage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.4" data-path="views/deptmanage.html">
            
                <a href="views/deptmanage.html">
            
                    
                    deptmanage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.5" data-path="views/faildoc.html">
            
                <a href="views/faildoc.html">
            
                    
                    faildoc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.6" data-path="views/files.html">
            
                <a href="views/files.html">
            
                    
                    files
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.7" data-path="views/init.html">
            
                <a href="views/init.html">
            
                    
                    init
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.8" data-path="views/layout.html">
            
                <a href="views/layout.html">
            
                    
                    layout
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.9" data-path="views/login.html">
            
                <a href="views/login.html">
            
                    
                    login
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.10" data-path="views/myfiles.html">
            
                <a href="views/myfiles.html">
            
                    
                    myfiles
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.11" data-path="views/passmail.html">
            
                <a href="views/passmail.html">
            
                    
                    passmail
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.12" data-path="views/redirect.html">
            
                <a href="views/redirect.html">
            
                    
                    redirect
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.13" data-path="views/sysmanage.html">
            
                <a href="views/sysmanage.html">
            
                    
                    sysmanage
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.14" data-path="views/template.html">
            
                <a href="views/template.html">
            
                    
                    template
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.15" data-path="views/updateinfo.html">
            
                <a href="views/updateinfo.html">
            
                    
                    updateinfo
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10.16" data-path="views/usermanage.html">
            
                <a href="views/usermanage.html">
            
                    
                    usermanage
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="2.11" data-path="config.html">
            
                <a href="config.html">
            
                    
                    配置文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.12" data-path="newPage.html">
            
                <a href="newPage.html">
            
                    
                    新建页面
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >配置文件</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h3 id="&#x914D;&#x7F6E;&#x6587;&#x4EF6;">&#x914D;&#x7F6E;&#x6587;&#x4EF6;</h3>
<blockquote>
<p>webpack&#x6587;&#x4EF6;&#xFF0C;&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x4E2D;&#xFF0C;&#x9700;&#x8981;&#x6539;&#x52A8;&#x7684;&#x5730;&#x65B9;&#x53EA;&#x6709;&#x5982;&#x4E0B;&#x4E09;&#x9879;&#x3002;&#x5176;&#x4ED6;&#x4E0D;&#x9700;&#x8981;&#x518D;&#x66F4;&#x6539;&#x3002;</p>
<ul>
<li><code>const Switch = DevConf.Remote;</code> &#x8FD9;&#x4E2A;&#x914D;&#x7F6E; &#x662F;&#x505A;&#x670D;&#x52A1;&#x7AEF;&#x4EE3;&#x7406;&#x4FEE;&#x6539;&#x7684;&#x3002;&#x9ED8;&#x8BA4;&#x5DF2;&#x7ECF;&#x90FD;&#x914D;&#x7F6E;&#x597D;&#x3002;&#x53EA;&#x9700;&#x8981;&#x5207;&#x6362;&#x5C31;&#x53EF;&#x4EE5;&#x3002;</li>
<li><code>host: &apos;localhost&apos;</code> &#x4FEE;&#x6539; &#x524D;&#x7AEF;&#x9879;&#x76EE;&#x7684;&#x8BBF;&#x95EE;&#x8DEF;&#x5F84;&#xFF0C;&#x6CE8;&#x610F;&#xFF0C;&#x5982;&#x679C;&#x60F3;&#x8981;&#x7528;ip&#x8BBF;&#x95EE;&#x7684;&#x8BDD;&#xFF0C;localhost &#x9700;&#x8981;&#x6539;&#x4E3A;&#x672C;&#x673A;&#x5B9E;&#x9645;&#x7684;ip&#x5730;&#x5740;&#x3002;</li>
<li><code>port: 8080</code> &#x524D;&#x7AEF;&#x8BBF;&#x95EE;&#x7684;&#x7AEF;&#x53E3;&#x53F7;&#x914D;&#x7F6E;</li>
</ul>
</blockquote>
<pre class="language-"><code class="lang-javascript"><span class="token comment">/**
 * &#x9700;&#x8981;&#x7684;&#x5730;&#x5740;&#x5728;&#x8FD9;&#x91CC;&#x914D;
 */</span>
<span class="token keyword">const</span> DevConf <span class="token operator">=</span> <span class="token punctuation">{</span>
  Local<span class="token operator">:</span> <span class="token punctuation">{</span>
    api<span class="token operator">:</span> <span class="token string">&quot;http://127.0.0.1:3000&quot;</span><span class="token punctuation">,</span>
    ws<span class="token operator">:</span> <span class="token string">&quot;http://127.0.0.1:3001&quot;</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
  Remote<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token comment">//17&#x670D;&#x52A1;&#x5668;</span>
    api<span class="token operator">:</span> <span class="token string">&quot;http://172.25.73.17:12306&quot;</span><span class="token punctuation">,</span>
    ws<span class="token operator">:</span> <span class="token string">&quot;http://172.25.73.17:12307&quot;</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
  Pro<span class="token operator">:</span> <span class="token punctuation">{</span><span class="token comment">//17 QA&#x6D4B;&#x8BD5;&#x4E13;&#x7528;&#x670D;&#x52A1;</span>
    api<span class="token operator">:</span> <span class="token string">&quot;http://172.25.73.17:3000&quot;</span><span class="token punctuation">,</span>
    ws<span class="token operator">:</span> <span class="token string">&quot;http://172.25.73.17:3001&quot;</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<span class="token comment">//&#x53EA;&#x9700;&#x8981;&#x6539;&#x5B83;&#x5C31;&#x53EF;&#x4EE5;&#x4E86;,</span>
<span class="token keyword">const</span> Switch <span class="token operator">=</span> DevConf<span class="token punctuation">.</span>Remote<span class="token punctuation">;</span> 

module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>
  Switch<span class="token punctuation">,</span>
  dev<span class="token operator">:</span> <span class="token punctuation">{</span>

    <span class="token comment">// Paths</span>
    assetsSubDirectory<span class="token operator">:</span> <span class="token string">&apos;static&apos;</span><span class="token punctuation">,</span>
    assetsPublicPath<span class="token operator">:</span> <span class="token string">&apos;/&apos;</span><span class="token punctuation">,</span>
    proxyTable<span class="token operator">:</span> <span class="token punctuation">{</span>
      <span class="token string">&quot;/api&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
        target<span class="token operator">:</span> Switch<span class="token punctuation">.</span>api<span class="token punctuation">,</span>
        changeOrigin<span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
        pathRewrite<span class="token operator">:</span> <span class="token punctuation">{</span>
          <span class="token string">&quot;^/api&quot;</span><span class="token operator">:</span> <span class="token string">&quot;/&quot;</span>
        <span class="token punctuation">}</span>
      <span class="token punctuation">}</span><span class="token punctuation">,</span>
      <span class="token string">&quot;/ws&quot;</span><span class="token operator">:</span> <span class="token punctuation">{</span>
        target<span class="token operator">:</span> Switch<span class="token punctuation">.</span>ws<span class="token punctuation">,</span>
        changeOrigin<span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
        ws<span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
        secure<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
        pathRewrite<span class="token operator">:</span> <span class="token punctuation">{</span>
          <span class="token string">&quot;^/ws&quot;</span><span class="token operator">:</span> <span class="token string">&quot;/&quot;</span>
        <span class="token punctuation">}</span>
      <span class="token punctuation">}</span>
    <span class="token punctuation">}</span><span class="token punctuation">,</span>

    <span class="token comment">// Various Dev Server settings</span>
    host<span class="token operator">:</span> <span class="token string">&apos;localhost&apos;</span><span class="token punctuation">,</span> <span class="token comment">// can be overwritten by process.env.HOST</span>
    port<span class="token operator">:</span> <span class="token number">8080</span><span class="token punctuation">,</span> <span class="token comment">// can be overwritten by process.env.PORT, if port is in use, a free one will be determined</span>
    autoOpenBrowser<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span>
    errorOverlay<span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
    notifyOnErrors<span class="token operator">:</span> <span class="token boolean">true</span><span class="token punctuation">,</span>
    poll<span class="token operator">:</span> <span class="token boolean">false</span><span class="token punctuation">,</span> <span class="token comment">// https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-</span>

   <span class="token operator">...</span>
   <span class="token operator">...</span>   
<span class="token punctuation">}</span>
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="views/usermanage.html" class="navigation navigation-prev " aria-label="Previous page: usermanage">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="newPage.html" class="navigation navigation-next " aria-label="Next page: 新建页面">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"配置文件","level":"2.11","depth":1,"next":{"title":"新建页面","level":"2.12","depth":1,"path":"src/newPage.md","ref":"src/newPage.md","articles":[]},"previous":{"title":"usermanage","level":"2.10.16","depth":2,"path":"src/views/usermanage.md","ref":"src/views/usermanage.md","articles":[]},"dir":"ltr"},"config":{"plugins":["chapter-fold","-lunr","-search","search-pro","-highlight","prism"],"styles":{"website":"styles/website.css"},"pluginsConfig":{"prism":{"css":["prismjs/themes/prism-tomorrow.css"]},"chapter-fold":{},"search-pro":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"Gj","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"合同管理","language":"zh-hans","gitbook":"3.2.3","description":"合同管理Web端"},"file":{"path":"src/config.md","mtime":"2020-02-28T09:21:51.304Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-03-07T04:19:36.591Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

